package edu.scau.hot.service.impl;

import edu.scau.hot.dto.RoomPriceDTO;
import edu.scau.hot.service.IHotCalculateService;
import edu.scau.hot.vo.HotTypeVO;
import org.springframework.stereotype.Service;

/**
 * IHotCalculateServiceImpl
 * 计算接口实现类 todo
 *
 * @author:paper
 * @since:2022/3/2-21:27
 */
@Service("hotCalculateService")
public class IHotCalculateServiceImpl implements IHotCalculateService{
    /**
     * 通过前端返回的参数计算价格
     *
     * @param roomPriceDTO
     * @return
     */
    @Override
    public HotTypeVO calculatePrice(RoomPriceDTO roomPriceDTO) {
        return null;
    }

    /**
     * 计算某房型整月的价格
     *
     * @param roomPriceDTO
     * @return 价格数组
     */
    @Override
    public double[] getPrice(RoomPriceDTO roomPriceDTO) {
        System.out.println(roomPriceDTO.toString());
        return new double[0];
    }
}
